package newWork.service.impl;

import newWork.dao.ISalaryDao;
import newWork.entity.SalaryEntity;
import newWork.service.ISalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalaryService implements ISalaryService {

	
	private ISalaryDao dao;

	@Autowired
	public SalaryService(ISalaryDao dao) {
		this.dao = dao;
	}
	
	@Override
	public void add(SalaryEntity entity) {
		dao.add(entity);
	}
	
	@Override
	public void delete(SalaryEntity entity) {
		dao.delete(entity);
	}
	
	@Override
	public void update(SalaryEntity entity) {
		dao.update(entity);
	}
	
	@Override
	public List<SalaryEntity> select(SalaryEntity entity) {
		return dao.select(entity);
	}

	@Override
	public Long likeSelectCount(SalaryEntity entity) {
		return dao.likeSelectCount(entity);
	}


}
